package com.cartoon.girl.livewallpaper;

import java.io.File;
import java.io.FilenameFilter;

final class ImageFilenameFilter implements FilenameFilter {
	public static final String HERO_FILE_FILTER ="hero_cat";
  @Override
  public boolean accept(File dir, String filename) {
    filename = filename.toLowerCase();
    boolean result = false;
    result = filename.endsWith(".jpg") || filename.endsWith(".jpeg") || filename.endsWith(".png")
        || filename.endsWith(".gif") || filename.endsWith(".bmp");
    return result&&filename.startsWith(HERO_FILE_FILTER);
  }
}
